<template>
  <div>
    <div class="col-xs-offset-2 col-xs-8">
        <div class="page-header"><h2>Vue Router Demo</h2></div>
        <button @click="backShow">后退</button>
        <button @click="forWardShow">前进</button>
        <button @click="goShow">测试go</button>
      </div>
  </div>
</template>

<script>
export default {
    name:'banner',
  methods:{
    forWardShow() {
 this.$router.forward()
    },
    backShow() {
 this.$router.back()
    },
    goShow() {
      this.$router.go(-3)
    }
  }

}
</script>

<style>

</style>